<?php
namespace Lib\Stack;

class StackEntity{
    private $_name;
    private $_priority;
    private $_body;
    
    private function __construct(){}
    /**
     *
     * @return StackEntity 
     */
    public static function getInstance(){
        return new self;
    }
    
    public function setName($name){
        $this->_name = $name;
    }
    public function getName(){
        return $this->_name;
    }
    public function setPriority($priority){
        $this->_priority = $priority;
    }
    public function getPriority(){
        return $this->_priority;
    }
    public function setBody(&$body){
        $this->_body = $body;
    }
    public function &getBody(){
        return $this->_body;
    }
}